// 导入vue包
import Vue from 'vue';

// 导入vue-router包
import VueRouter from 'vue-router'

// 手动安装VueRouter
Vue.use(VueRouter);

//导入路由组件
import HomeContainer from './components/tabbar/HomeContainer.vue';
import MenberContainer from './components/tabbar/MenberContainer.vue';
import SearchContainer from './components/tabbar/SearchContainer.vue';
import ShopcarContainer from './components/tabbar/ShopcarContainer.vue';



// 创建VueRouter对象
var router= new VueRouter({
    routes:[
        {path:'/',redirect:'/home'},
        {path:'/home',component:HomeContainer},
        {path:'/menber',component:MenberContainer},
        {path:'/shopcar',component:ShopcarContainer},
        {path:'/search',component:SearchContainer}
    ],
    linkActiveClass:'mui-active'//覆盖路由默认高亮的类router-link-active
});
//把路由对象暴露出去
export default router